package com.leunpha.mini.spider.listener;

import com.leunpha.mini.net.events.NetEvent;
import com.leunpha.mini.net.events.NetState;
import com.leunpha.mini.net.listener.Listener;

/**
 * User: zhoujingjie
 * Date: 14-6-30
 * Time: 下午4:58
 */
public abstract class SpiderRunningListener extends Listener {
    @Override
    public void update(NetEvent event) {
        if(event.getState() == NetState.RUNNING)
            running((String) event.getValue());
    }
    public abstract void running(String url);
}
